package com.lecyon.farm.comment;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * Jwt 令牌
 *
 * @author Yao Zheng
 * @Date 2019/9/5 14:57
 */
public class JwtToken implements AuthenticationToken {

    private String token;

    private String host;

    public JwtToken(String token) {
        this.token = token;
    }

    public JwtToken(String token, String host) {
        this.token = token;
        this.host = host;
    }

    @Override
    public Object getPrincipal() {
        return token;
    }

    @Override
    public Object getCredentials() {
        return token;
    }
}
